//package cn.whitecao.contentcenter.config;
//
//import com.alibaba.csp.sentinel.adapter.servlet.CommonFilter;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class WebConfig {
//  @Bean
//  public FilterRegistrationBean sentinelFilterRegistration() {
//    FilterRegistrationBean registration = new FilterRegistrationBean();
//    registration.setFilter(new CommonFilter());
//    registration.addUrlPatterns("/*");
//    registration.setName("sentinelCommonFilter");
//    registration.setOrder(1);
//    return registration;
//  }
//}